package cn.edu.wynu.oop.inherit;

public class TestPerson {
    public static void main(String[] args) {
//        Person person = new Person();
//        person.setAge(25);
//        person.setName("zrk");
//        System.out.println("age:" + person.getAge());
//        System.out.println("name:" + person.getName());

        Student student = new Student();
        student.setAge(25);
        student.setName("zrk");
        student.setLearnId("2024400003");

        System.out.println(student);


        StudentExtendPerson studentExtendPerson = new StudentExtendPerson();
        studentExtendPerson.setAge(20);
        studentExtendPerson.setName("大理国皇子");
        studentExtendPerson.setLearnId("6");

        System.out.println(studentExtendPerson);
    }
}
